﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AppConfigCodeGenerator;
using System.IO;
//using TestApplication.Configuration;

namespace TestApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            String generatedCode = CodeGenerator.Generate("TestApplication", "TestApplication.exe", CodeGenerator.AvailableLanguage.CSharp, "TestApplication.exe.config");
            Console.WriteLine(generatedCode);

            using (StreamWriter writer = new StreamWriter("generatedCode.cs"))
            {
                writer.Write(generatedCode);
            }

            Console.ReadLine();

            //Console.WriteLine(TestApplicationConfiguration.Plop);

            //TestApplicationConfiguration.Plop = "test46000";

            //Console.WriteLine(TestApplicationConfiguration.Plop);

            //Console.ReadLine();
        }
    }
}
